package spitter.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by gongyan on 17/4/5.
 */
@Controller // 声明一个控制器
@RequestMapping("/")
public class HomeController {

    @RequestMapping(method = RequestMethod.GET) // 处理对"/"的GET请求
    public String home() {
        return "home";
    }

}
